projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a421073
)
Add comment explaining why we set the hard margins to 0 for n-up
author
Christian Persch
<chpe@gnome.org>
Tue, 1 Dec 2009 16:42:08 +0000
(17:42 +0100)
committer
Christian Persch
<chpe@gnome.org>
Tue, 1 Dec 2009 16:42:08 +0000
(17:42 +0100)
Bug #468989 comment 28.
gtk/gtkprintoperation-unix.c
patch
|
blob
|
history
diff --git
a/gtk/gtkprintoperation-unix.c
b/gtk/gtkprintoperation-unix.c
index 19e5644f1decb886f78f22f34b5b23da125c42ab..a9b41437c4fea8ea74c3d5c2b8c9b739d1330775 100644
(file)
--- a/
gtk/gtkprintoperation-unix.c
+++ b/
gtk/gtkprintoperation-unix.c
@@
-549,6
+549,10
@@
finish_print (PrintResponseData *rdata,
if (gtk_printer_get_hard_margins (printer, &top, &bottom, &left, &right))
_gtk_print_context_set_hard_margins (priv->print_context, top, bottom, left, right);
} else {
+ /* Pages do not have any unprintable area when printing n-up as each page on the
+ * sheet has been scaled down and translated to a position within the printable
+ * area of the sheet.
+ */
_gtk_print_context_set_hard_margins (priv->print_context, 0, 0, 0, 0);
}